

/**
 * 
 */

/**
 * @author Davide Dal Bosco
 * @author Francesco Cardin
 *
 */


public class Shot implements Cloneable {
	
	private int giantPos;
	private int[] dwarfsPos;

	public Shot (int giantPos, int[] dwarfsPos) {
    	this.giantPos = giantPos;
    	this.dwarfsPos = new int[3];
    	for(int i=0; i<3; i++)
    		this.dwarfsPos[i] = dwarfsPos[i];
    	  	
    }
    
    boolean equals(Shot s){
    	if(giantPos==s.giantPos && dwarfsPos[0]==s.dwarfsPos[0] 
    	        && dwarfsPos[1]==s.dwarfsPos[1] && dwarfsPos[2]==s.dwarfsPos[2])
    		return true;
    	return false;
    }
    
    protected Shot clone(){
		int[] dP = {dwarfsPos[0], dwarfsPos[1], dwarfsPos[2]};
		return new Shot(giantPos, dP);
    	
    }
    
}